package linearlist;

/**
 * Created by Administrator on 2017/3/2.
 */
public interface Linearlist<E> {
    /*添加*/
    boolean add(E e);

    /*插入*/
    boolean add(E e, int i);

    /*删除*/
    E remove(int i);

    /*定位*/
    int indexOf(E e);

    /*获取*/
    E get(int i);

    /*求个数*/
    int size();

    /*清除*/
    void clear();

    /*是否为空*/
    boolean isEmpty();

}
